// pages/business_edit/business_edit.js
const app = getApp(), core = require('../../utils/core'), WeValidator = require('../../utils/we-validator');
Page({

  /**
   * 页面的初始数据
   */
  data: {
    info: null,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.getOpenerEventChannel().on('infoTransfer', data => {
      this.setData({
        info: data.info,
      });
    });
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },
  bindSubmit(event) {
    this.data.info.intro = event.detail.value.intro;
    this.getOpenerEventChannel().emit('infoTransfer',{info:this.data.info});
    wx.navigateBack();
  }

});
